<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="__PUBLIC__/Admin/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Admin/lib/font-awesome/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!--[if IE 7]>
<link href="lib/font-awesome/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link href="__PUBLIC__/Admin/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]--><title>管理员列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="iconfont">&#xf012b;</i> 首页 <span class="c-gray en">&gt;</span> 管理员管理 <span class="c-gray en">&gt;</span> 权限管理 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div class="pd-20">
  <div class="text-c">
    <form class="Huiform" method="post" action="{:U('admin/admin/rules_add')}" target="_self">
      <input type="text" placeholder="权限名称" name="rule" autocomplete="off" value="" class="input-text" style="width:150px">
      <input type="text" placeholder="字段名" name="field" autocomplete="off" value="" class="input-text" style="width:150px">
      
      <button type="submit" class="btn btn-success" id="" name="" onClick="admin_permission_add();"><i class="icon-plus"></i> 添加权限节点</button>
      <!-- onclick="rules_add('550','','添加权限节点','{:U('admin/admin/rules_add')}')" -->
    </form>
  </div>
  <div class="cl pd-5 bg-1 bk-gray mt-20">
    <span class="l">
      <a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="icon-trash"></i> 批量删除</a>
    </span>
    <span class="r">共有数据：<strong>54</strong> 条</span>
  </div>
  <table class="table table-border table-bordered table-bg">
    <thead>
      <tr>
        <th scope="col" colspan="7">权限节点</th>
      </tr>
      <tr class="text-c">
        <th width="25"><input type="checkbox" name="" value=""></th>
        <th width="40">ID</th>
        <th width="200">权限名称</th>
        <th>字段名</th>
        <th width="70">操作</th>
      </tr>
    </thead>
    <tbody>
    <?php foreach ($res as  $value) { ?>
      <tr class="text-c">
        <td><input type="checkbox" value="1" name=""></td>
        <td><?php echo $value['id']; ?></td>
        <td><?php echo $value['title']; ?></td>
        <td><?php echo $value['name']; ?></td>
        <td class="f-14"><a title="编辑" href="javascript:;" onclick="admin_permission_edit('1','400','310','权限编辑','{:U('admin/admin/rules_edit',array('id'=>$value['id']))}')" class="ml-5" style="text-decoration:none"><i class="icon-edit"></i></a> <a title="删除" href="{:U('admin/admin/rules_delete',array('id'=>$value['id']))}" onclick="admin_permission_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="icon-trash"></i></a></td>
      </tr>
    <?php } ?>
      
      
    </tbody>
  </table>
</div>
<style type="text/css">

                .current{
                  -webkit-background-clip: border-box;
                  -webkit-background-origin: padding-box;
                  -webkit-background-size: auto;
                  background-attachment: scroll;
                  background-clip: border-box;
                  background-color: rgb(66, 139, 202);
                  background-image: none;
                  background-origin: padding-box;
                  background-size: auto;
                  border-bottom-color: rgb(73, 158, 243);
                  border-bottom-left-radius: 4px;
                  border-bottom-style: solid;
                  border-bottom-width: 1px;
                  border-image-outset: 0px;
                  border-image-repeat: stretch;
                  border-image-slice: 100%;
                  border-image-source: none;
                  border-image-width: 1;
                  border-left-color: rgb(73, 158, 243);
                  border-left-style: solid;
                  border-left-width: 1px;
                  border-right-color: rgb(73, 158, 243);
                  border-right-style: solid;
                  border-right-width: 1px;
                  border-top-color: rgb(73, 158, 243);
                  border-top-left-radius: 4px;
                  border-top-style: solid;
                  border-top-width: 1px;
                  box-sizing: border-box;
                  color: rgb(255, 255, 255);
                  cursor: default;
                  display: block;
                  float: left;
                  font-family: 'Helvetica Neue', STHeiti, 'Microsoft YaHei', Helvetica, Arial, sans-serif;
                  font-size: 14px;
                  height: 34px;
                  line-height: 20px;
                  list-style-image: none;
                  list-style-position: outside;
                  list-style-type: none;
                  margin-left: 0px;
                  padding-bottom: 6px;
                  padding-left: 12px;
                  padding-right: 12px;
                  padding-top: 6px;
                  position: relative;
                  text-align: center;
                  text-decoration: none solid rgb(255, 255, 255);
                  width: 34px;
                  z-index: 2;


                }
                .num{
                  -webkit-background-clip: border-box;
                  -webkit-background-origin: padding-box;
                  -webkit-background-size: auto;
                  background-attachment: scroll;
                  background-clip: border-box;
                  background-color: rgb(238, 238, 238);
                  background-image: none;
                  background-origin: padding-box;
                  background-size: auto;
                  border-bottom-color: rgb(221, 221, 221);
                  border-bottom-style: solid;
                  border-bottom-width: 1px;
                  border-image-outset: 0px;
                  border-image-repeat: stretch;
                  border-image-slice: 100%;
                  border-image-source: none;
                  border-image-width: 1;
                  border-left-color: rgb(221, 221, 221);
                  border-left-style: solid;
                  border-left-width: 1px;
                  border-right-color: rgb(221, 221, 221);
                  border-right-style: solid;
                  border-right-width: 1px;
                  border-top-color: rgb(221, 221, 221);
                  border-top-style: solid;
                  border-top-width: 1px;
                  box-sizing: border-box;
                  color: rgb(42, 100, 150);
                  cursor: pointer;
                  display: block;
                  float: left;
                  font-family: 'Helvetica Neue', STHeiti, 'Microsoft YaHei', Helvetica, Arial, sans-serif;
                  font-size: 14px;
                  height: 34px;
                  line-height: 20px;
                  list-style-image: none;
                  list-style-position: outside;
                  list-style-type: none;
                  margin-left: -1px;
                  outline-color: rgb(42, 100, 150);
                  outline-style: none;
                  outline-width: 0px;
                  padding-bottom: 6px;
                  padding-left: 12px;
                  padding-right: 12px;
                  padding-top: 6px;
                  position: relative;
                  text-align: center;
                  text-decoration: none solid rgb(42, 100, 150);
                  width: 34px;
                }
                .next{
                  -webkit-background-clip: border-box;
                  -webkit-background-origin: padding-box;
                  -webkit-background-size: auto;
                  background-attachment: scroll;
                  background-clip: border-box;
                  background-color: rgb(238, 238, 238);
                  background-image: none;
                  background-origin: padding-box;
                  background-size: auto;
                  border-bottom-color: rgb(221, 221, 221);
                  border-bottom-style: solid;
                  border-bottom-width: 1px;
                  border-image-outset: 0px;
                  border-image-repeat: stretch;
                  border-image-slice: 100%;
                  border-image-source: none;
                  border-image-width: 1;
                  border-left-color: rgb(221, 221, 221);
                  border-left-style: solid;
                  border-left-width: 1px;
                  border-right-color: rgb(221, 221, 221);
                  border-right-style: solid;
                  border-right-width: 1px;
                  border-top-color: rgb(221, 221, 221);
                  border-top-style: solid;
                  border-top-width: 1px;
                  box-sizing: border-box;
                  color: rgb(42, 100, 150);
                  cursor: pointer;
                  display: block;
                  float: left;
                  font-family: 'Helvetica Neue', STHeiti, 'Microsoft YaHei', Helvetica, Arial, sans-serif;
                  font-size: 14px;
                  height: 34px;
                  line-height: 20px;
                  list-style-image: none;
                  list-style-position: outside;
                  list-style-type: none;
                  margin-left: -1px;
                  outline-color: rgb(42, 100, 150);
                  outline-style: none;
                  outline-width: 0px;
                  padding-bottom: 6px;
                  /*padding-left: 12px;*/
                  /*padding-right: 12px;*/
                  padding-top: 6px;
                  position: relative;
                  text-align: center;
                  text-decoration: none solid rgb(42, 100, 150);
                  width: 36px;
                }

                .prev{
                  -webkit-background-clip: border-box;
                  -webkit-background-origin: padding-box;
                  -webkit-background-size: auto;
                  background-attachment: scroll;
                  background-clip: border-box;
                  background-color: rgb(250, 250, 250);
                  background-image: none;
                  background-origin: padding-box;
                  background-size: auto;
                  border-bottom-color: rgb(230, 230, 230);
                  border-bottom-left-radius: 4px;
                  border-bottom-style: solid;
                  border-bottom-width: 1px;
                  border-image-outset: 0px;
                  border-image-repeat: stretch;
                  border-image-slice: 100%;
                  border-image-source: none;
                  border-image-width: 1;
                  border-left-color: rgb(230, 230, 230);
                  border-left-style: solid;
                  border-left-width: 1px;
                  border-right-color: rgb(230, 230, 230);
                  border-right-style: solid;
                  border-right-width: 1px;
                  border-top-color: rgb(230, 230, 230);
                  border-top-left-radius: 4px;
                  border-top-style: solid;
                  border-top-width: 1px;
                  box-sizing: border-box;
                  color: rgb(153, 153, 153);
                  cursor: pointer;
                  display: block;
                  float: left;
                  font-family: 'Helvetica Neue', STHeiti, 'Microsoft YaHei', Helvetica, Arial, sans-serif;
                  font-size: 14px;
                  height: 34px;
                  line-height: 20px;
                  list-style-image: none;
                  list-style-position: outside;
                  list-style-type: none;
                  margin-left: 0px;
                  padding-bottom: 6px;
                  /*padding-left: 12px;*/
                  /*padding-right: 12px;*/
                  padding-top: 6px;
                  position: relative;
                  text-align: center;
                  text-decoration: none solid rgb(153, 153, 153);
                  width: 36px;
                }

                .pagination  {
                  border-bottom-left-radius: 4px;
                  border-bottom-right-radius: 4px;
                  border-top-left-radius: 4px;
                  border-top-right-radius: 4px;
                  box-sizing: border-box;
                  color: rgb(102, 102, 102);
                  display: block;
                  float: right;
                  font-family: 'Helvetica Neue', STHeiti, 'Microsoft YaHei', Helvetica, Arial, sans-serif;
                  font-size: 14px;
                  height: 34px;
                  line-height: 22.4px;
                  list-style-image: none;
                  list-style-position: outside;
                  list-style-type: none;
                  margin-bottom: 0px;
                  margin-left: 0px;
                  margin-right: 400px;
                  margin-top: 20px;
                  padding-bottom: 0px;
                  padding-left: 0px;
                  padding-right: 0px;
                  padding-top: 0px;
                  text-align: center;
                  text-decoration: none;
                  /*width: 213px;*/
                  position: absolute;
                  right: 45px;
                  bottom: 10px;
                }
                </style>
<div class="pagination pull-right">
    <?php echo $show; ?>
</div>  
<script type="text/javascript" src="__PUBLIC__/Admin/lib/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/layer1.8/layer.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/laypage/laypage.js"></script> 
<script type="text/javascript" src="__PUBLIC__/Admin/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/H-ui.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="__PUBLIC__/Admin/js/H-ui.admin.doc.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F080836300300be57b7f34f4b3e97d911' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>